import httpRequest from '@/http/httpRequest'

// 获取生产记录列表
export const getList = (data) => {
  return httpRequest.post('/product-record/list', data)
}

// 条件查询生产记录
export const getByCondition = (data) => {
  return httpRequest.post('/product-record/get', data)
}

// 保存或更新生产记录
export const save = (data) => {
  return httpRequest.post('/product-record/save', data)
}

// 删除生产记录
export const deleteRecord = (id) => {
  return httpRequest.delete(`/product-record/delete/${id}`)
}

// 获取产品名称列表
export const getName = () => {
  return httpRequest.get('/product/name')
} 